package ap;

public class Ap {

    public static void main(String[] args) {
        Duck d = new MallardDuck();
        d.display();
        d.performQuack();
        d.performFly();
        d.swim();
        System.out.println("");
        Duck m = new ModelDuck();
        m.display();
        m.performQuack();
        m.setFlyType(new FlyAsRocket());
        m.performFly();
        m.swim();

    }
}
